/* ---------------------------------------------------------------------------------------------
 *
 *            Capital Alliance Software Confidential Proprietary
 *            (c) Copyright CAS 201{x}, All Rights Reserved
 *                          www.pekall.com
 *
 * ----------------------------------------------------------------------------------------------
 */

package com.android.music.util;

import android.graphics.Color;

import com.android.music.R;

/**
 * 常量设置
 * 
 * @author LeiKang
 */
public class Util {

    /* MusicService.java */
    /**
     * 开始service
     */
    public static final String START_ACTION = "com.android.music.START_ACTION";

    public static final String START_DOWNLOAD_SERVICE = "com.android.music.START_DOWNLOAD_SERVICE";

    public static final String PLAY_ACTION = "com.android.music.PLAY_ACTION";

    public static final String PAUSE_ACTION = "com.android.music.PAUSE_ACTION";

    public static final String NEXT_ACTION = "com.android.music.NEXT_ACTION";

    public static final String PREVIOUS_ACTION = "com.android.music.PREVIOUS_ACTION";

    public static final String MUSIC_POSITION_BROADCAST = "com.android.music.musicPositionBroadCast";

    public static final String MUSIC_CHANGE_BROADCAST = "com.android.music.musicChangeBroadCast";

    /**
     * ListView 选中播放歌曲
     */
    public static final String SELECT_ACTION = "com.android.music.SELECT_ACTION";

    /* ViewLrc.java */
    /**
     * 歌词存储路径
     */
    public static final String LRC_SDCARD_PATH = "/mnt/sdcard/pekallmusic/";

    /**
     * 歌词文件格式
     */
    public static final String LRC_FORMAT = ".lrc";

    /**
     * 歌词文本大小
     */
    public static final int LRC_TEXT_SIZE = 18;

    /**
     * 桌面歌词大小
     */
    public static final int DESK_LRC_TEXT_SIZE = 25;

    /**
     * 播放页面歌词大小
     */
    public static final int PLAY_LRC_TEXT_SIZE = 16;

    /**
     * 歌词行距
     */
    public static final int LRC_TEXT_LINE_HEIGHT = 30;

    /**
     * 当前播放歌词颜色
     */
    public static final int LRC_PLAYING_COLOR = Color.rgb(41, 247, 239);

    /**
     * 歌词颜色
     */
    public static final int LRC_BACKGROUND_COLOR = Color.WHITE;

    public static final int DESK_TOP_LRC_PLAYING_COLOR = Color.YELLOW; // Color.YELLOW;

    public static final int DESK_TOP_LRC_BACKGROUND_COLOR = Color.GREEN;

    public static final int DESK_TOP_LRC_BG_COLOR = Color.rgb(0, 154, 231);// 深邃兰

    public static final int DESK_TOP_LRC_BG_COLOR1 = Color.rgb(247, 93, 16);// 火焰红

    public static final int DESK_TOP_LRC_BG_COLOR2 = Color.rgb(189, 32, 239);// 粉

    public static final int DESK_TOP_LRC_BG_COLOR3 = Color.rgb(239, 219, 148);// 黄

    /**
     * 正在播放歌词所处Y坐标位置
     */
    public static final int LRC_PLAYING_POSITION_Y = 150;

    /* HomeActivity.java */

    public static final String MUSIC_SERVICE_TAG = "com.android.music.service.MusicService";

    public static final int MENU_TOP_DESK_LYRIC = 0;

    public static final int MENU_MUSIC_INFO = 1;

    public static final int MENU_PLAY_MODEL = 2;

    public static final int MENU_LYRIC_EFFIC = 3;

    public static final int MENU_HELP = 4;

    public static final int MENU_ABOUT = 5;

    public static final int MENU_BACK = 6;

    public static final String PANEL_ID = "panel_id";

    /**
     * 滑动过程中 viewchild 监听id
     */
    public static final int PLAY_PANEL_ID = 2131099745;

    /**
     * 列表view
     */
    public static final int LIST_PANEL_ID = 2131099746;

    /**
     * 歌词view
     */
    public static final int LRC_PANEL_ID = 2131099747;

    /** 菜单图片 上 playlayout **/
    public static final int[] menu_image_array_top_play = {
            R.drawable.icon_menu_update_file, R.drawable.icon_menu_audioinfo,
            R.drawable.icon_menu_loopmode, R.drawable.icon_menu_showeffect,
            R.drawable.icon_menu_help, R.drawable.icon_menu_about, R.drawable.icon_menu_back
    };

    // /** 菜单文字 上 playlayout **/
    // public static final String[] menu_name_array_top_play = {
    // "桌面歌词", "歌曲信息", "播放模式", "显示效果", "帮助", "关于", "退出"
    // };

    // /** 菜单图片 上 lrclayout **/
    // public static final int[] menu_image_array_top_lrc = {
    // R.drawable.icon_menu_update_file, R.drawable.icon_menu_audioinfo,
    // R.drawable.icon_menu_addto, R.drawable.icon_menu_findlrc,
    // R.drawable.icon_menu_dellrc,
    // R.drawable.icon_menu_relrc, R.drawable.icon_menu_showeffect,
    // R.drawable.icon_menu_ring
    // };
    //
    // /** 菜单文字 上 lrclayout **/
    // public static final String[] menu_name_array_top_lrc = {
    // "桌面歌词", "歌曲信息", "添加到", "搜索歌词", "删除歌词", "调整歌词", "显示效果", "设为铃声"
    // };
    //
    // /** 菜单图片 上 listlayout **/
    // public static final int[] menu_image_array_top_list = {
    // R.drawable.icon_menu_update_file
    // };
    //
    // /** 菜单文字 上 listlayout **/
    // public static final String[] menu_name_array_top_list = {
    // "桌面歌词"
    // };
    //
    // public static final int[] menu_image_array_bottom = {
    // R.drawable.icon_menu_loopmode, R.drawable.icon_menu_set,
    // R.drawable.icon_menu_exit,
    // R.drawable.icon_menu_more
    // };
    //
    // public static final String[] menu_name_array_bottom = {
    // "播放模式", "系统设置", "退出", "更多"
    // };
    //
    // /** 子菜单图片 **/
    // public static final int[] menu_image_array_sun = {
    // R.drawable.icon_menu_set, R.drawable.icon_menu_share,
    // R.drawable.icon_menu_landscape,
    // R.drawable.icon_menu_scan, R.drawable.icon_menu_help,
    // R.drawable.icon_menu_about,
    // R.drawable.icon_menu_back
    // };
    //
    // /** 子菜单文字 **/
    // public static final String[] menu_name_array_sun = {
    // "睡眠模式", "推荐好友", "恒屏设置", "歌曲过滤", "帮助", "关于", "返回"
    // };
    //
    public static final int[] type_image_array = {
            R.drawable.ic_mp_screen_artists, R.drawable.ic_mp_screen_albums,
            R.drawable.ic_mp_screen_composers, // R.drawable.ic_mp_screen_genres,
            R.drawable.ic_mp_screen_playlists, R.drawable.ic_mp_screen_tracks,
    };

    //
    // public static final String[] type_name_array = {
    // "艺术家", "专辑", "流派", "文件夹", "播放列表", "最近播放"
    // };

    /* SharedPreference.java */

    // public static final String[] PLAY_MODEL_TAG = {
    // "列表循环", "单首循环", "随机播放"
    // };

    // public static final String[] ITEM_LONG_CLICK = {
    // "播放","添加至","歌曲信息"
    // };
    // public static final String[] MY_PLAY_IMG_CLICK = {
    // "新增列表","清空所有列表"
    // };

    /**
     * 播放模式标签
     */
    public static final String TAG_PLAY_MODEL = "sp_play_model";

    /**
     * 单曲循环
     */
    public static final String PLAY_MODEL_SINGLE = "play_model_single";

    /**
     * 所有循环
     */
    public static final String PLAY_MODEL_ALL = "play_model_all";

    /**
     * 随机播放
     */
    public static final String PLAY_MODEL_RANDOM = "play_model_random";

    public static final String IS_DESK_TOP_LRC_SHOW = "is_desk_top_show";

    public static final String IS_LRC_KTV = "is_lrc_ktv";

    /**
     * 索引table
     */
    public static final int TABLE_INDEX_HISTORY = 0;

    public static final int TABLE_INDEX_MY_PLAY_LIST = 1;

    public static final int TABLE_INDEX_MY_PLAY_LIST_MUSIC_MAP = 2;

    public static final String TIME_WHERE = "duration > 100000";

    /**
     * 上次播放歌曲
     */
    public static final String LAST_PLAY_MUSIC = "last_play_music";

    /**
     * 是否第一次进入
     */
    public static final String IS_FIRST_LOAD = "is_first_load";

    public static final String LAST_SCREEN_ID = "last_screen_id";

}
